import React from 'react';
import DutySelect, { clearCache, clearAllCache } from '@/components/DutySelect/DutySelect';
import salaryStyle from '@/pages/SalaryManage/salaryManage.less';
import classNames from 'classnames';

/**
 * 由于岗位往往字段很长，所以允许一个岗位多行显示
 * dropdownClassName
 */
const DutySelectExt = React.forwardRef(({ dropdownClassName, ...otherProps }, ref) => (
    <DutySelect
        ref={ref}
        dropdownClassName={classNames(salaryStyle.wordBreakDropdown, dropdownClassName)}
        {...otherProps}
    />
));

export default DutySelectExt;
export { clearCache, clearAllCache };
